package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author rock
 * @since 2021-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RecruitmentRecords extends MyPage implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "employee_id", type = IdType.AUTO)
    private Integer employeeId;

    private String education;

    private String department;

    private String post;

    private Date entryTime;

    public String getEntryTime() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        if (this.entryTime != null){
            return sdf.format(this.entryTime);
        }
        return "";
    }

    public void setEntryTime(String entryTime) {
        SimpleDateFormat sft = new SimpleDateFormat("yyyy-MM-dd");
        try {
            this.entryTime=sft.parse(entryTime);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    private String personnelStatus;


}
